namespace MagicApp.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class InitialCreate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Cards",
                c => new
                    {
                        multiverseID = c.Int(nullable: false, identity: true),
                        name = c.String(),
                        manaCost = c.String(),
                        convManaCost = c.Int(nullable: false),
                        colors = c.String(),
                        type = c.String(),
                        supertype = c.String(),
                        types = c.String(),
                        subtypes = c.String(),
                        rarity = c.String(),
                        text = c.String(),
                        flavor = c.String(),
                        artist = c.String(),
                        number = c.String(),
                        power = c.String(),
                        toughness = c.String(),
                        layout = c.String(),
                        imageName = c.String(),
                        id = c.String(),
                    })
                .PrimaryKey(t => t.multiverseID);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Cards");
        }
    }
}
